<%--
  Created by IntelliJ IDEA.
  User: tql
  Date: 2021/5/16
  Time: 16:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<% String path2 = request.getContextPath(); %>
<html>
<head>
    <meta charset="utf-8">
    <title>上机考试管理系统</title>
    <link href="<%=path2%>/css/bootstrap.css" rel="stylesheet">
    <link href="<%=path2%>/css/exam.css" rel="stylesheet">
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
    <div class="navbar-inner">
        <div class="container">
            <span class="brand"><strong>上机考试系统</strong></span>

            <ul class="nav navbar-nav">
                <li><a href="${pageContext.request.contextPath}/admin/admin_main"><i class="icon-home icon-white"></i>首页</a></li>
                <li><a href="${pageContext.request.contextPath}/admin/admin_teacher"><i class="icon-user icon-white"></i>教师管理</a></li>
                <li><a href="${pageContext.request.contextPath}/admin/admin_exam"><i class="icon-remove-circle icon-white"></i>考试清理</a></li>
                <li><a href="${pageContext.request.contextPath}/admin/admin_config"><i class="icon-wrench icon-white"></i>系统配置</a></li>
            </ul>
            <ul class="nav navbar-nav pull-right">
                <li><span class="brand"><small>欢迎: ${adminname}</small></span></li>
                <li><a href="#" data-toggle="modal"
                       data-target=".bs-example-modal-sm"><i class="icon-pencil icon-white"></i>修改口令</a></li>
                <li><a href="${pageContext.request.contextPath}/admin/admin_logout"><i class="icon-share icon-white"></i>退出</a></li>
            </ul>
            <!--/.nav-collapse -->
        </div>
    </div>
</div>

<div class="modal fade bs-example-modal-sm span3" tabindex="-1" role="dialog"
     aria-labelledby="mySmallModalLabel">
    <div class="modal-dialog modal-sm">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"
                        aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
                <h4 class="modal-title">修改口令</h4>
            </div>
            <div class="modal-body">
                <form class="exam-form" action="${pageContext.request.contextPath}/admin/change_pass" method="post">
                    <p>
                        <label>
                            <input type="password" name="oldpass" placeholder="原口令" style="width:100%"/>
                        </label>
                        <br/>
                        <label>
                            <input type="password" name="newpass1" placeholder="新口令" style="width:100%"/>
                        </label>
                        <br/>
                        <label>
                            <input type="password" name="newpass2" placeholder="重输新口令" style="width:100%"/>
                        </label>
                        <br/>
                        <input type="submit" class="btn btn-primary" value="修改" style="width:100%"/>
                    </p>
                </form>
            </div>
        </div>
    </div>
</div>
</body>
</html>
